/**
 * 系统配置
 */
export type SystemConfig = {
  mobileRepeat: number;
  mobileAllShow: number;
};
/**
 * 业务类型
 */
export type CustomerProfilingItem = {
  portraitId?: string;
  portraitName: string;
};

/**
 * 客户阶段
 */
export type CustomerStage = {
  stageSettingId?: string;
  stageName: string;
  status: number;
  showSeq: number;
  stageType: number | string;
};

/**
 * 流程列表参数
 */
export type ProcessParams = {
  portraitId: string;
  showStatus: number;
};

/**
 * (流程配置)客户阶段
 */
export type ProcessCustomerStage = {
  portraitStageId?: string;
  portraitId: string;
  stageSettingId: string;
};

/**
 * 流程任务
 */
export type ProcessTaskItem = {
  taskSettingId?: string;
  portraitId?: string;
  stageSettingId?: string;
  beforeTaskFormId?: string;
  taskName: string;
  isMust: number;
  formName?: string;
  roleId: string;
  executeDays: number;
  intervalDays: number;
  trackDays: number;
  formId: string;
  status: number;
  isOut: number;
  orderNum: number;
  remark: string;
  workDateType: number;
  checkType: string | number[];
  modelId: string;
  standardId: string;
  isCheck: number;
  taskType: string | number;
  stageType: string | number;
  isAudit: boolean;
  assignTimeType: boolean;
};
/**
 * 流程配置列表
 */
export type ProcessListItem = {
  portraitStageId: string;
  stageSettingId: string;
  stageName: string;
  task: ProcessTaskItem[];
  stageType: string;
};

/**
 * 负责人选项
 */
export type RoleItem = {
  roleId: string;
  roleName: string;
};
/**
 * 添加下拉选项
 */
export type OptionItem = {
  roleList: RoleItem[];
  crmStageTaskSettingRepVO: ProcessTaskItem[];
  forms: any[];
};

/**
 * 前置流程
 */
export type BeforeTaskParams = {
  portraitId?: string;
  stageType: string;
  stageSettingId?: string;
  withTaskPackage?: boolean;
};
/**
 * 前置流程数据
 */
export type BeforeTaskItem = {
  crmStageTaskSettingRepVO: ProcessTaskItem[];
};
/**
 * 添加/编辑科目
 */
export type financeSubjectsParams = {
  sort: number;
  subjectType: number;
  money: string;
  subjectName: string;
  parentSubjectId?: string;
  subjectCode: string;
  subjectId?: string;
  source?: number;
};

/**
 * 记账科目
 */
export type approves = {
  billSubjectId?: string;
  debtorSubjectId: string;
  debtorSubjectName: string;
  creditorSubjectId: string;
  creditorSubjectName: string;
};
/**
 * 添加/编辑报销借款
 */
export type LoanParams = {
  billCategoryId?: string;
  billCategoryName: string;
  formId: string;
  formName: string;
  type: number;
  promptMsg: string;
  parentBillCategoryId?: string;
  sort: number;
  billSubjectStageReq: {
    approves: approves[];
    accountPayment: approves[];
    debitSlipPayment: approves[];
  };
};

/**
 * 财务单据配置列表
 */
export type InvoicesList = {
  slipType: string;
  type: 1 | 2;
  isConfig: Boolean;
  billSubjectStageReq: {
    approves: approves[];
    accountPayment: approves[];
    debitSlipPayment: approves[];
  };
};

/**
 * 前置任务
 */
export type beforeConditionItem = {
  beforeTaskSettingId?: string;
  beforeFieldId?: string;
  beforeFieldVal: string;
  beforeFieldName: string;
  firstLoad?: boolean;
  beforeFields?: any;
  beforeFieldOptions?: any;
};
/**
 * 任务参考数据列表
 */
export type ReferenceDataItem = {
  name: string;
};
